﻿using DuToanT2.Models.DomainBase;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DuToanT2.Models
{
    public class GiaThongBao : EntityBase
    {
        [Required]
        [StringLength(150)]
        [Display(Name = "Tên thông báo")]
        public string Name { get; set; }

        [Display(Name = "Toàn văn")]
        public string ToanVan { get; set; }

        [Display(Name = "Thời điểm công bố")]
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public System.DateTime? ThoiDiemCongBo { get; set; }

        public int CityId { get; set; }

        [Display(Name = "Tỉnh/Thành phố")]
        public virtual City City { get; set; }

        public virtual ICollection<GiaThongBao_ChiTiet> GiaThongBao_ChiTiets { get; set; }

        public virtual ICollection<GiaThongBao_ApDung> GiaThongBao_ApDungs { get; set; }
    }
}
